package www.openteam.com.contract.policy;

import java.util.List;

import www.openteam.com.bean.ApprovalStatu;
import www.openteam.com.bean.PayableApproval;
import www.openteam.com.bean.ProOrder;
import www.openteam.com.bean.ReceivableApproval;

/**
 * Created by kylin on 2017/1/16.
 */

public class ReceivableApprovalContract {

    public interface ReceivableApprovalView {
//        queryReceivableApproval(@Query("custid") String custid, @Query("startDate")
// long startDate, @Query("endDate") long endDate, @Query("pageSize") int PageSize);

        String getCustid();

        long getStartTime();

        long getEndTime();

        String getStype();

        String getMoreCom();

        int getOrderState();

        void queryRASuccess(List<ReceivableApproval.DataEntity> data);

        void queryRAFail(String failMsg);

        void approvalRASuccess(ApprovalStatu aprovalStatu);

        void approvalRAFail(String failMsg);

        void unApprovalRASuccess(ApprovalStatu aprovalStatu);

        void unApprovalRAFail(String failMsg);
    }

    public interface ReceivableApprovalPresenter {

        void queryReceivableApproval(String custid, long startTime, long endTime,int orderStatus,
                                     String stype, String moreCom,
                                     int PageSize);

        void reApprovalUpdate(int id);

        void unReApprovalUpdate(int id);
    }
}
